<%-- 
    Document   : index
    Created on : 19 janv. 2014, 15:37:15
    Author     : mini-john
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<fieldset class="form-container " style="width:80%;margin-left:5%;"> 
    <form:form id="form_782213"  method="post" action="/adherent/update.do" modelAttribute="adherent" autocomplete="off">
        <legend class="form-title"><h2>Modification de l'adh&eacute;rent : ${adherent.nomPrenom}</h2></legend>
        <h3 style="margin-bottom: 5%;margin-left: 1%">Veuillez renseigner les champs ci-dessous :</h3>
        <form:errors path="*" cssClass="errorblock" element="div"></form:errors>
        <form:hidden path="id"/>
        <div style="float: left;position: relative;">
            <div class="form-title">Nom Pr&eacute;nom </div>
            <form:input class="form-field" type="text" path="nomPrenom" tabindex="1"/>

            <div class="form-title">Adresse </div>
            <form:input class="form-field" type="text" path="adresse" tabindex="2"/>
            <div class="form-title">Code Postal </div>
            <form:input class="form-field" type="text" path="codePostal" tabindex="4"  maxlength="5"/>
            <div class="form-title">Num&eacute;ro de t&eacute;l&eacute;phone  </div>
            <form:input class="form-field" type="text" path="telephone" tabindex="6"  maxlength="10"/>
            <div class="form-title">Num&eacute;ro URSSAF </div>
            <form:input class="form-field" type="text" path="numUrssaf" tabindex="8"/>
        </div>
        <div style="float: left;position: relative;">
            <div class="form-title" style="margin-top:55px;">&nbsp;</div>

            <div class="form-title">Compl&eacute;ment Adresse</div>
            <form:input class="form-field" type="text" path="complementAdresse" tabindex="3" />
            <div class="form-title">Ville</div>
            <form:input class="form-field" type="text" path="ville" tabindex="5" />
            <div class="form-title">Num&eacute;ro de t&eacute;l&eacute;phone mobile </div>
            <form:input class="form-field" type="text" path="mobile" tabindex="7"  maxlength="11"/>
            <div class="form-title">Num&eacute;ro Siret</div>
            <form:input class="form-field" type="text" path="numSiret" tabindex="9"/>
        </div>



        <div class="submit-container" style=" clear: left;">
            <form:button class="submit-button" type="submit" >Enregistrer</form:button>
            <form:button class="submit-button" id="annuler" type="reset">Annuler</form:button>
            </div>
    </form:form>
</fieldset>

<script>
    $(function() {

        $("button[id=annuler]")
                .click(function(event) {
                    window.location = "/adherent/index.do"
                });
    });
</script>